////////////////////////////////////////////////////////////////////////////
    // example of custom renderer functio
   var storePrBuildMost = new Ext.data.JsonStore({
        root: 'articles',
        fields: [
            'id', 'name','herb'
        ],
        // load using script tags for cross domain, if the data in on the same domain as
        // this page, an HttpProxy would be better
        proxy: new Ext.data.HttpProxy({
            url: basePath+'/../prescription',
            doClass:'prBuildMost',
            fjIds:fjIds
        }),
        baseParams: {doClass:'prBuildMost'}
    });
    storePrBuildMost.setDefaultSort('id', 'desc');

    function pctChange(val){

        var v = '</div><div style="word-wrap:break-word; overflow:hidden;" >' + val + '</div><div>';
     
        return v;
    }
    // create the Grid
    var gridPrBuildMost = new Ext.grid.GridPanel({
        store: storePrBuildMost,
        shadow:true,
        autoScroll: true,
        bodyStyle:'width:100%;',
		autoWidth:true,
		autoExpandColumn:'herb',
		//autoHeight:true,
		height:Ext.get("storePrBuildMost").getHeight(),
		renderTo:'storePrBuildMost',
        columns: [
            {id:'',header: "方剂id", width: 90,sortable: true,dataIndex: 'id'},
            {header: "方剂名称", width: 90,sortable: true, dataIndex: 'name',menuDisabled:true},
            {header: "方剂组成", renderer:pctChange, sortable: true, dataIndex: 'herb',id:'herb',menuDisabled:true}
        ],
         iconCls:'icon-grid',
         sm: new Ext.grid.RowSelectionModel({singleSelect: false})
    });
   
    gridPrBuildMost.on('rowclick', function(g, rowIdx, e) {
   			// g.selectRow(rowIdx,false);
		//updataCaContent({doClass:"content", chapterId:ds.getAt(rowIdx).data.id})
	});
    
    storePrBuildMost.load({params:{doClass:'prBuildMost',fjIds:fjIds}});
  